package me.cat.learn1.stringjoinerdemo;

import java.util.StringJoiner;

public class StringJoinerDemo2 {
    public static void main(String[] args) {
        StringJoiner sj = new StringJoiner(",", "[", "]");
        sj.add("aa").add("bb").add("cc");
        int len = sj.length();
        System.out.println(len);
        String str = sj.toString();
        System.out.println(str);
    }
}
